import { request } from '../REQ'

const modulePrefix = '/dict'
/* 获取输入表格标题与行 */
export function getInTables(solution_id: number,project_type: number) {
	return request({
		url: modulePrefix + `/table-info/IN/${solution_id}/${project_type}`,
		method: 'get',
	})
}
/* 获取输出表格标题与行 */
export function getOutTables(solution_id: number,project_type: number) {
	return request({
		url: modulePrefix + `/table-info/OUT/${solution_id}/${project_type}`,
		method: 'get',
	})
}
/* 获取所有表格标题与行 */
export function getAllTables(solution_id: number,project_type: number) {
	return request({
		url: modulePrefix + `/table-info/ALL/${solution_id}/${project_type}`,
		method: 'get',
	})
}
/* 获取指标 */
export function getIndicators(solution_id: number, project_type: number) {
	return request({
		url: modulePrefix + `/indicator-info/${solution_id}/${project_type}`,
		method: 'get',
	})
}
/* 表格包含的指标 */
export function getTableIndicators(table_id: number, project_type: number) {
	return request({
		url: modulePrefix + `/table-indicator/${table_id}/${project_type}`,
		method: 'get',
	})
}

export default {
	getInTables,
	getOutTables,
	getAllTables,
	getIndicators,
	getTableIndicators,
}
